//登录，后端给前端返回的数据
export interface INoticeRequest {
    code: string
    message: string
    data?: string | null,
    timestamp: number
}

//列表
export interface INoticeList {
    code: string
    message: string
    data: {
        records: IListInfo[],
    }
    total: number
    timestamp: number
}

// 列表信息

export interface IListInfo {
    id: number;
    createUser?: string;
    createTime?: Date;
    title?: string;
    type?: 1 | 2;
    enabled?: 0 | 1;
    content?: string;
}

//搜索栏
export interface INoticeForm {
    title: string | undefined;
    current: number,
    size: number,
}



//新增表单信息
export interface INoticeFormAdd {
    title: string;
    type: number;
    enabled: number;
    content: string;
}

export interface IDictForm {
    current: number,
    size: number,
    title: string
}

//修改表单信息
export interface INoticeFormUpdate {
    title: string;
    type: number;
    enabled: number;
    content: string;
    id: string
}


//字典类型返回值
export interface INoticeAllRequest {
    code: string
    message: string
    data: INoticeTypeAll[]
    timestamp: number
}

export interface INoticeTypeAll {

    id?: number;
    createUser?: string;
    createTime?: string; // 前端通常用字符串表示日期时间
    name: string;
    type: string;
    remarks?: string;
}
